.first-form {
    text-align: center;
}

.first-form-wrapper {
    margin: 0 auto;
    padding: 40px 20px;
    width: 100%;
    max-width: 450px;
    box-sizing: border-box;
    position: relative;
}

#success-message::after {
  content: "";
  position: absolute;
  width: 100px;
  height: 100px;
  transform: translateX(-50%) translateY(-50%);
  top: 50%;
  left: 50%;
  z-index: -1;
  background: center /cover no-repeat url(../img/done.png);
  filter: opacity(.3) brightness(1.2) blur(2px);
}

.popup-img > img {
    width: 100%;
    height: 300px;
    object-fit: cover;
  }

.popup-img {
    position: relative;
}

.popup-img::after {
    /* content: "Олег & Ксения"; */
    content: "";
    width: 300px;
    height: 300px;
    /* font-size: 33px;
    color: white; */
    /* font-weight: bolder; */
    background: center /100% no-repeat url(../img/img_form_1.png);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateY(-50%) translateX(-50%);
    filter: drop-shadow(5px 5px 3px gray) opacity(.7)
}

.first-form__header {
  font-size: var(--font-marks);
  font-family: var(--font-family-marks);
  font-weight: 400;
    padding-bottom: 15px;
}

.first-form__text > p {
    /* font-family:Georgia, 'Times New Roman', Times, serif; */
    font-family: var(--font-family-other);
    font-size: 18px;
    margin: 0;
    box-sizing: border-box;
    text-align:center;
    line-height: 1.5;
    text-align: justify;
}

.first-form__text::first-letter,
.first-form__header::first-letter,
.wrapperOuter p::first-letter,
.name-guest label::first-letter {
    color:#ff92aa;
}

/* форма опроса */

.form {
    padding-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
    line-height: 1.5;
}

.form-come {
  width: 100%;
  position: relative;
}

.form-come:before {
  content: "";
  position: absolute;
  left: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 3px;
  border: 1px solid var(--color-text);
  opacity: .7;
}

#come {
  width: 100%;
  font-family: var(--font-family-main);
  font-size: 20px;
  line-height: 1.3;
  outline: none;
  padding: 2px 25px;
  box-sizing: border-box;
  border: 2px solid #AAAAAA;
  transition: all 0.25s ease-out;
  cursor: pointer;
  background-color: transparent;
  color: var(--color-text);
}


#come:focus {
  border: 2px solid #ff92aa;
}

#come:hover {
  border: 2px solid #ff92aa;

}

#come:active {
  border: 2px solid #ff92aa;
}

.wrapperOuter {
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 18px;
    margin-bottom: 5px;
    line-height: 1.2;
}

.wrapperOuter p {
    /* font-family: var(--font-family-other); */
    font-size: 24px;
    padding: 0;
    margin: 0;
    margin-bottom: 5px;
}

.wrapperOuter ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
    font-size: 20px;
  }
  
  ul li{
    color: var(--color-text);
    display: block;
    position: relative;
  }
  
  ul li input[type=radio]{
    position: absolute;
    visibility: hidden;
  }
  
  ul li label{
    display: block;
    position: relative;
    font-weight: 500;
    padding-left: 30px;
    z-index: 9;
    cursor: pointer;
    transition: all .25s linear;

    -webkit-transition: all 0.25s linear;
  }
  
  ul li:hover label{
    color: #000000;
  }
  
  ul li .check{
    display: block;
    position: absolute;
    border: 2px solid #AAAAAA;
    border-radius: 100%;
    height: 20px;
    width: 20px;
    top: 0px;
    left: 0px;
    z-index: 5;
    transition: border .25s linear;
    -webkit-transition: border .25s linear;
  }
  
  ul li:hover .check {
    border: 2px solid #000000;
  }
  
  ul li .check::before {
    display: block;
    position: absolute;
    content: '';
    border-radius: 100%;
    height: 14px;
    width: 14px;
    top: 3px;
    left: 3px;
    /* margin: auto; */
    transition: background 0.25s linear;
    -webkit-transition: background 0.25s linear;
  }
  
  input[type=radio]:checked ~ .check {
    border: 2px solid #ff92aa;
    color: #000000;
  }
  
  input[type=radio]:checked ~ .check::before{
    background: #ff92aa;
  }
  
  input[type=radio]:checked ~ label {
    color: #000000;
  }

  input[type=radio]:checked ~ label::first-letter{
    color: #ff92aa;
  }


  /* type= checkbox */

  ul li input[type=checkbox]{
    position: absolute;
    visibility: hidden;
  }

  ul li .select{
    display: block;
    position: absolute;
    border: 2px solid #AAAAAA;
    height: 18px;
    width: 18px;
    top: 2px;
    left: 0px;
    z-index: 5;
    transition: all .25s linear;
    -webkit-transition: border .25s linear;
  }
  
  ul li:hover .select {
    border: 2px solid #000000;
  }
  
  ul li .select::before {
    display: block;
    position: absolute;
    content: '';
    height: 12px;
    width: 5px;
    top: 0px;
    left: 5px;
    transition: border 0.25s ease-out;
    -webkit-transition: border 0.25s ease-out;
  }
  
  input[type=checkbox]:checked ~ .select {
    border: 2px solid #ff92aa;
  }
  
  input[type=checkbox]:checked ~ .select::before{
    border: solid #ff92aa;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
  }
  
  input[type=checkbox]:checked ~ label{
    color: #000000;
    font-weight: 500;

  }

  input[type=checkbox]:checked ~ label::first-letter{
    color: #ff92aa;
  }

  .name-guest {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    font-size: 24px;
    width: 100%;
    box-sizing: border-box;
  }

  .name-guest label {
    cursor: pointer;
  }

  .name-guest input {
    font-family: var(--font-family-main);
    padding: 5px 10px;
    font-size: var(--font-text);
    color: var(--color-text);
    border: 2px solid #AAAAAA;
    transition: border .25s linear;
    box-sizing: border-box;
    width: 100%;
  }

  input[type=text]::placeholder {
    font-family: var(--font-family-main);
    opacity: .5;
  }

  input[type=text]:placeholder-shown {
    color: #ff92aa;
  }

  input[type=text]:focus {
    border: 2px solid #ff92aa;
    outline: none;
  }

  input[type=text]:hover {
    border: 2px solid #ff92aa;

  }

  input[type=text]:active {
    border: 2px solid #ff92aa;
  }


  input[type=submit] {
    font-family: var(--font-family-main);
    padding: 5px 10px;
    font-size: var(--font-text);
    box-sizing: border-box;
    width: 100%;
    outline: none;
    border: 2px solid #AAAAAA;
    background-color: transparent;
    cursor: pointer;
    transition: all 0.25s ease-out;
    -webkit-transition: color 0.25s ease-out;

  }

  input[type=submit]:hover {
    color: #ff92aa;
    border: 2px solid #ff92aa;
  }

  .inp-btn {
    position: relative;
    box-sizing: border-box;
    overflow: hidden;
    width: 100%;
  }

  .inp-wrap {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    transform: translateX(-85px);
    /* filter: blur(10) brightness(3); */
    animation: buttonColor 2.5s ease-out infinite forwards;
  }
  
  .inp-effect {
    background: linear-gradient(90deg, #f2c4b948, #f3e6e248);
    width: 100px;
    height: 100%;
    position: absolute;
    top: 0;
    left: -30px;
    transform: skewX(-55deg);
  }



  /* Сообщение об отправке данных */

  #success-message {
    display: none;
  }


@media (max-width: 600px) {

    /* iframe {
        width: 95%;
        z-index: 1;
    } */
}
